package com.nnxy.worktostudy.system.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.nnxy.worktostudy.system.entity.Admin;
import com.nnxy.worktostudy.system.mapper.AdminMapper;
import com.nnxy.worktostudy.system.service.AdminService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author luye
 * @since 2021-09-26
 */
@Service
public class AdminServiceImpl extends ServiceImpl<AdminMapper, Admin> implements AdminService {

    @Override
    public Admin selectByUsername(String username) {
        return baseMapper.selectOne(new QueryWrapper<Admin>().eq("username",username));
    }
}
